/* 主页面布局 */
.main-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #001529;
    color: white;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #002140;
}

.sidebar-header h3 {
    color: white;
    margin: 0;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 菜单项样式 */
.menu-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item:hover {
    background-color: #002140;
}

.menu-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    width: 20px;
    text-align: center;
}

/* 箭头样式 */
.arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.expanded .arrow {
    transform: rotate(0deg);
}

/* 子菜单样式 */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #000c17;
}

.submenu.show {
    max-height: 500px; /* 足够大的高度以容纳所有子菜单项 */
}

.submenu-item {
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-item:hover {
    background-color: #001529;
}

.submenu-icon {
    font-size: 8px;
    color: #1890ff;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-btn {
    padding: 6px 15px;
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #ff7875;
}

/* 选项卡导航样式 */
.tabs-nav {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 15px;
}

.tabs-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.tabs-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.tab-item {
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.tab-item:hover {
    color: #1890ff;
}

.tab-item.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-close {
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 4px;
    color: #999;
}

.tab-close:hover {
    background-color: #f0f0f0;
    color: #666;
}

/* 选项卡内容区域样式 */
.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #f0f2f5;
}

.tab-content {
    flex: 1;
    padding: 24px;
    background: #fff;
    margin: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    height: 100%;
}

.tab-pane h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.tab-pane p {
    color: #666;
    line-height: 1.6;
}